<?php $this->load->view('common/head');?>
<?php $this->load->view('common/navbar');?>
<h2 class="fs36 mb54 mt10" style="margin-left: 28px;"><?=$proData['proName']?></h2>
<div class="timetips"><span>所属双月：<?=$proData['timeUnitStr']?> </span><span>项目类型：<?=$proData['proTypeName']?> </span><span>截至提交时间：<?=date("Y-m-d H:i:s", $proData['endTime'])?></span></div>
<div class="partone mt10"></div>
<form name="add" id="add" action="<?php echo $this->input->server('REQUEST_URI'); ?>" method="post">
<input type="hidden" name="proId" id="proId" value="<?=$proData['proId']?>">
<?php foreach ($actList as $actK => $actV) {?>
<div class="panel panel-default feedbackpart">
  <!-- Default panel contents -->
  <div class="panel-heading"><h3><?=$actV['actTitle']?></h3></div>
  <div class="panel-body col-md-4 mb40">
    <p><?=$actV['actDesc']?></p>
  </div>
  <div class="panel-body partinner">
  <?php foreach ($actV['itemList'] as $itemK => $itemV) {
    //echo '<div class="partone mt10"></div>';
  	printProActItem($itemV);
  } ?>
   </div>
   <?php if($actV['auditValue']){?>
   <div class="panel panel-default" style="margin-bottom: 0px;margin-right: 10px;border: 1px solid #000;padding: 10px;">
     <div class="panel-body">
        <div><h2>审核结果</h2></div>
        <div><?=$actV['auditValue']['auditRsStr']?></div>
     </div>
   </div>
   <?php }?>
</div>
<?php } ?>
<div class="form-group text-center">
	<button type="submit" class="btn btn-primary">提交反馈</button>
	<button type="button" class="btn btn-primary" onclick="window.location.href='<?=$breadcrumb[count($breadcrumb)-2]['url']?>'">返回</button>
</div>
</form>
<script type="text/javascript">
  $(function(){
  	initValidation();
  });
  //初始化验证
function initValidation(){
	$('form[name="add"]').find("input,select,textarea").jqBootstrapValidation("destroy");
	$('form[name="add"]').find("input,select,textarea").not("[type=submit]").jqBootstrapValidation({
	    preventSubmit:false,
	    submitSuccess: function (form, event) {
	         event.preventDefault();
	         ajaxFormSubmit('add');
	     },
	     submitError: function (form, event, errors) {
	       event.preventDefault();
	       }
  	});
}
// 评分选择
$(".selectinput li").on("click",function(){
  var num = $(this).index();//点击当前评分选择的序号
  var num2 = $(this).parents(".selectinput").find("li").length;//评分选择的长度
  $(this).parents(".selectinput").find(".grade").val(num+1);//评分选择的数值传进影藏input（type="hidden"）里
  $(this).parents(".selectinput").find("li").removeClass('checked');//去掉全部评分选择class样式
  for(var i = 0; i < num+1;i++){
    $(this).parents(".selectinput").find("li").eq(i).addClass('checked');//给当前评分选择前包括自己给个class样式
  }
});
//单选选择
$(".selectradio li").on("click",function(){
  $(this).parents(".selectradio").find("li").removeClass('checked');
  $(this).parents(".selectradio").find("input:checked").parents("li").addClass('checked');
});

//多选选择
$(".selectcheckbox li").on("click",function(){
  $(this).parents(".selectcheckbox").find("li").removeClass('checked');
  $(this).parents(".selectcheckbox").find("input:checked").parents("li").addClass('checked');
});
</script>
<?php $this->load->view('common/foot');?>